package cn.qiao.zk.order.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import cn.qiao.zk.order.ZookListener;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年05月05日 21:08
 */
@Configuration
public class RegisterConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

    @Bean
    public ZookListener zookListener(){
        ZookListener listener = new ZookListener();
        listener.init();
        return listener;
    }

}
